home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14307 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: nuscc.nus.sg!eng50442
  2. From: eng50442@leonis.nus.sg (Yeo Whui Mei)
  3. Newsgroups: comp.lang.c++
  4. Subject: What's GP Exception in BC4.5?
  5. Date: 29 Mar 1996 17:10:12 GMT
  6. Organization: National University of Singapore
  7. Message-ID: <4jh5hk$k6f@nuscc.nus.sg>
  8. NNTP-Posting-Host: eng50442@leonis.nus.sg
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Hi all!
  12.  
  13. I'm a newbie to C programming so if you know what my problem below refers 
  14. to, pls explain in layman's term.
  15.  
  16. I was trying to do this question in which a list of countries and their 
  17. capitals are given and the user is supposed to type in the country name, 
  18. and the program will return the name of the capital.  This action will be 
  19. terminated by 'END'.
  20.  
  21. I did my question on Borland C++4.5.  I initialised two arrays with the 
  22. country names and capital names using array of pointers.  The compilier 
  23. compiled 
  24. successfully.  I typed in the input and hit the 'return' key, and then 
  25. and error dialog box appeared which goes like this:
  26.  
  27.         General Protection Exception
  28.             0x0CCF:0x22FB
  29.         COUNTRY (1) 0x0CCF:022FB Processor 
  30.         Fault
  31.  
  32. I check my event log also and this is what gives:
  33.     
  34. breakpoint at 0x0CCF:0056: country.exe begin execution at 
  35. COUNTRY.CPP 12, task handle 0x0E76
  36.  
  37. Btw, COUNTRY is the name of the file.
  38.  
  39. If any of you out there knows what's wrong, please reply to me at my 
  40. email add ASAP.  I would appreciate the prompt reply.
  41.  
  42. Thank you.
  43.  
  44. Regards
  45. Whui Mei
  46.